package bip.util.SendToQFKR;

public enum ComparisonEnum {


	FORM_Transfer("1902f333e9fee3ffb2af7d04ae985381", "1902f3eec85e5fedc1a1b804920a80d8", "调动"),

	FORM_regularization("1902f12ad7f1e7278773d9c4b949eaf5", "1902f27d4535ad0273d5241417b927f6", "转正"),

	FORM_resignation("1902f4729ca0fe26d6756e64cc9b2fc6", "1902f5a92a6dea35f35d6714edba9190", "离职");

	/**
	 * 表单ID
	 */
	private final String formId;

	/**
	 * 流程ID
	 */
	private final String processId;

	/**
	 * 名称
	 */
	private final String name;

	ComparisonEnum(String formId, String processId, String name) {
		this.formId = formId;
		this.processId = processId;
		this.name = name;
	}

	// Getter methods
	public String getFormId() {
		return formId;
	}

	public String getProcessId() {
		return processId;
	}

	public String getName() {
		return name;
	}

	// 如果需要，可以添加根据formId或processId获取枚举值的方法
	public static ComparisonEnum getByFormId(String formId) {
		for (ComparisonEnum e : ComparisonEnum.values()) {
			if (e.getFormId().equals(formId)) {
				return e;
			}
		}
		return null;
	}

	public static ComparisonEnum getByProcessId(String processId) {
		for (ComparisonEnum e : ComparisonEnum.values()) {
			if (e.getProcessId().equals(processId)) {
				return e;
			}
		}
		return null;
	}
}

